﻿

using HBase;
using Net.http;
using System.Drawing;

namespace Controller
{
    ///Print/code
    [RoutePrefix("zps")]
    public class ZebraPrinterServer : BaseApiController
    {
        [HttpGet, Route("d2/{code}")]
        public string code(string code)
        {

            CarrierSignalStatus dd = new CarrierSignalStatus();

            dd.gg = "1500D/1670dtex";
            dd.type = "SF2800";
            dd.lotNo = "2024012601";

            dd.mz = "372.3KG";
            dd.jz = "335.4KG";
            dd.roll = "39卷";
            dd.code = code;
            QRHFPrinter mpd = new QRHFPrinter();
            mpd.save(dd);

            return "ok";

        }

            
        [HttpGet, Route("in")]
        public CarrierSignalStatus getInfo() {

            CarrierSynchro1 connct = (CarrierSynchro1)TaskPool.get("CarrierSynchro1");
            return connct.dd;
        }




    }
}
